package com.huawei.appgallery.foundation.ui.css;

import android.view.View;

public class CSSViewProxy {
    private CSSRule rule;
    private View view;

    public CSSViewProxy(View view, CSSRule cSSRule) {
        this.view = view;
        this.rule = cSSRule;
    }

    public CSSViewProxy render(View view) {
        CSSView.wrap(view, this.rule).render(false);
        return this;
    }

    public CSSViewProxy render() {
        return render(this.view);
    }

    public CSSRule getRule() {
        return this.rule;
    }

    public View getView() {
        return this.view;
    }
}
